QT       += core gui xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

RC_ICONS = image/icon.ico
LIBS += -L$$PWD -lqscintilla2_qt5
Debug: LIBS += -L$$PWD -lqscintilla2_qt5d
SOURCES += \
    code/code_window.cpp \
    head_button/dialog_new_module.cpp \
    main.cpp \
    mainwindow.cpp \
    module/module_port.cpp \
    module/module_window.cpp \
    module/property/module_port_property.cpp \
    module/property/module_propertys.cpp \
    module/property/module_window_property.cpp \


HEADERS += \
    code/code_window.h \
    head_button/dialog_new_module.h \
    mainwindow.h \
    module/module_port.h \
    module/module_window.h \
    module/property/module_port_property.h \
    module/property/module_propertys.h \
    module/property/module_window_property.h \


FORMS += \
    code/code_window.ui \
    head_button/dialog_new_module.ui \
    mainwindow.ui \
    module/module_port.ui \
    module/module_window.ui \
    module/property/module_port_property.ui \
    module/property/module_window_property.ui

TRANSLATIONS += \
    eda_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# 增加 QScintilla
CONFIG += qscintilla2

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    image/icon.ico
